﻿using Hangfire;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace BgWorks.Models
{
    public class JobModel
    {
        public JobModel()
        {
            CronStr = Cron.Daily();
        }
        //创建后生成唯一标识符
        public string JobKey { get; set; }
        /// <summary>
        /// SQL，API
        /// </summary>
        public string Type { get; set; }
        /// <summary>
        /// 定时表达式
        /// </summary>
        public string CronStr { get; set; }
        public JobData Data { get; set; }
    }
}
